#-*- encoding: utf8 -*-

import datetime

from django.db import models
from django.contrib.auth.models import User

class Payment(models.Model):  
    user = models.ForeignKey(User, unique=False, verbose_name=('id'))    
    reference = models.CharField(max_length=50, blank=True, null=True)
    #invoice_id = models.CharField(max_length=10, blank=True, null=True)
    currency = models.CharField(max_length=5, blank=True, null=True)
    amount = models.CharField(max_length=10, blank=True, null=True)
    fee = models.CharField(max_length=10, blank=True, null=True)
    email = models.EmailField()
    identifier = models.CharField(max_length=50, blank=True, null=True)
    item_name = models.CharField(max_length=150, blank=True, null=True)
    exp_date = models.DateTimeField(default=datetime.date.today(), blank=True, null=True)
